﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Impediments.aspx.cs" Inherits="AgileDashboard.Impediments" %>
<%@ OutputCache CacheProfile="GeneralCacheProfile" %>
<%@ Register src="controls/Impediments.ascx" tagname="Impediments" tagprefix="uc1" %>
<asp:Content runat="server" ID="Head" ContentPlaceHolderID="HeadContentPlaceHolder">
    <script type="text/javascript">
    <!--
        jQuery.event.add(window, "load", resizeFrame);
        jQuery.event.add(window, "resize", resizeFrame);

        function resizeFrame() {
            var h = $(window).height();
            var w = $(window).width();
            $("#elementToResize").css('height', (h < 1024 || w < 768) ? 500 : 400);
        }

        $(document).ready(function () {
            $("div.more").click(function (e) {
                $(e.target).parent().find("div.less.hide").toggle("blind");
                $(e.target).parent().find("div.impedimentDescription").toggle("blind");
                $(e.target).toggle("blind");
                e.preventDefault();
                return false;
            });
            $("div.less").click(function (e) {
                $(e.target).parent().find("div.more").toggle("blind");
                $(e.target).parent().find("div.impedimentDescription").toggle("blind");
                $(e.target).toggle("blind");
                e.preventDefault();
                return false;
            });
        });
    //-->
    </script>
    <style type="text/css">
        div.impedimentColumn > div {
            float: left;
            padding-right: 20px;
        }
    </style>

</asp:Content>
<asp:Content runat="server" ID="Body" ContentPlaceHolderID="BodyContentPlaceHolder">
    <div class="section">
        <div class="sectionTitle">All Impediments</div>
        <div class="impedimentGroupContainer">
            <div class="impedimentColumn"><uc1:Impediments ID="AllImpediments" MaxItems="0" SortByCreateDate="Ascending" ShowDescription="true" ShowImpedimentAge="true" runat="server" /></div>
        </div>
    </div>
</asp:Content>
